/**
 * Created by novem on 2015/11/16.
 */
window.onload=function(){
    var id = $.getUrlParam("id");
    var url = getUrl();
    $.jsonp({
        url: 'http://'+url+'/api/mapline/detail-'+id,
        data: {},
        callbackParameter: "callback",
        success: function (data, textStatus, xOptions) {
            var complid_tpl = juicer($("#desc").text());
            var html = complid_tpl.render(data);
            $(".wrapper").append(html);
            //$("#goback").attr('href','xianlu_detail.html?id='+id);
        },
        error: function (xOptions, textStatus) {
        }
    });
}